Cocktail Help Reference
OperationResult<T> Class Members
See Also  Properties  Methods  Send Feedback
Cocktail Assembly > Cocktail Namespace : OperationResult<T> Class


Glossary Item Box

The following tables list the members exposed by OperationResult<T>.

Protected Constructors

 NameDescription
Protected ConstructorOperationResult<T> ConstructorConstructs a wrapper around the provided asynchronous function.  
Top

Public Properties

 NameDescription
Public PropertyCancelledReturns whether the operation was cancelled. (Inherited from Cocktail.OperationResult)
Public PropertyCompletedSuccessfullyReturns whether the operation completed successfully. (Inherited from Cocktail.OperationResult)
Public PropertyErrorReturns the exception if the operation failed. (Inherited from Cocktail.OperationResult)
Public PropertyHasErrorReturns whether the operation failed. (Inherited from Cocktail.OperationResult)
Public PropertyIsCompletedReturns whether the operation is completed regardless of whether it was cancelled or failed. (Inherited from Cocktail.OperationResult)
Public PropertyIsErrorHandledReturns whether the error was handled. (Inherited from Cocktail.OperationResult)
Public PropertyResultThe result value of the operation.  
Top

Public Methods

 NameDescription
Public MethodAsTaskReturns a Task<T> for the current OperationResult.  
Top

Public Operators

public Operator Implicit Type Conversion Overloaded. Implicitly converts the current OperationResult to type System.Threading.Tasks.Task
Top

See Also

© 2012 All Rights Reserved.